from selenium.webdriver.common.by import By
"""
    读书屋登录页
    page_login_
"""
page_login_user = [By.XPATH,"//input[@id='txtUName']"]
page_login_pwd = [By.XPATH, "//input[@id='txtPassword']"]
page_login_button = [By.XPATH, "//input[@id='btnLogin']"]


"""
    读书屋首页
    page_index_
"""
page_index_author = [By.XPATH,"//ul[@id='navModule']//a[text()='作家专区']"]

"""
    作家管理页
    page_authorManage_
"""
# 章节管理按钮
page_authorManage_chapterManagerBtn = [By.XPATH,"//*[contains(text(),'章节管理')]"]
# 新建章节按钮
page_authorManage_createChapter = [By.XPATH,"//div[@id='hasContentDiv']//a[text()='新建章节']"]
# 章节名
page_authorManage_createChapter_name = [By.NAME,"bookIndex"]
# 章节内容
page_authorManage_createChapter_content = [By.NAME,"bookContent"]
# 免费=0,收费=1
page_authorManage_createChapter_fee = [By.XPATH,"//input[@value='0']"]
# 收费
page_authorManage_createChapter_nofee = [By.XPATH,"//input[@value='1']"]
# 点击新建章节-提交
page_authorManage_createChapter_button = [By.NAME,"btnRegister"]
# 章节列表-章节名
page_authorManage_ChapterList_name = [By.XPATH,"//td[contains(text(),'hjm')]"]
# 章节列表-对应章节名-是否收费
page_authorManage_ChapterList_fee = [By.XPATH,"//td[contains(text(),'hjm')]/../td[contains(text(),'收费')]"]
# 章节列表-删除按钮
page_authorManage_ChapterList_del_btn = [By.XPATH,"//td[contains(text(),'hjm')]/..//a[contains(text(),'删除')]"]
# 章节删除-确定按钮
page_authorManage_ChapterList_del_btn_True = [By.XPATH,"//a[text()='确定']"]


"""
    个人中心
    page_single_center_
"""
page_single_center_entrance = [By.XPATH,"//a[@class='mr15']"]
page_single_center_recharge = [By.XPATH,"//a[@class='btn_link']"]


